/*
 * @Description: 
 * @Version: 1.0
 * @Autor: c-jack.qian
 * @Date: 2021-04-13 15:15:22
 * @LastEditors: c-jack.qian
 * @LastEditTime: 2021-04-13 19:47:53
 */
const { merge } = require("webpack-merge");
const commonConfig = require("./webpack.common");
const HtmlWebpackPlugin = require('html-webpack-plugin');
// 开发模式
module.exports = merge(commonConfig,{
   mode: 'development',
   devtool: "cheap-module-source-map",
   module: {
      rules:[
         {
            test: /\.less$/,
            use: ['style-loader','css-loader','less-loader']
        },
        {
            test: /\.css$/,
            use: ['style-loader','css-loader']
        },
      ]
   },
   plugins: [
      new HtmlWebpackPlugin({
         template: './public/index.html',
         title: 'jack webapck',
     }),
   ]
})